﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditNewsUserControl.ascx.cs"
    Inherits="JM.JCY.SharePointComponent.News.EditNews.EditNewsUserControl" %>
<%@ Register Src="../LeftMenuNews/LeftMenuNewsUserControl.ascx" TagName="LeftMenuNewsUserControl"
    TagPrefix="uc1" %>

    <script type="text/javascript">
        $(document).ready(function () {

        });

        function popup(URL) {
            window.open(URL, null, "width=630,height=500,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizeable=no,directories=no");
        }

        function RedirectToManageNews(sender) {
            sender.href = "ManageNews.aspx?Category=" + $("#<%=hfCategory.ClientID %>").val();
        }

</script>
<div>
    <table class="main">
        <tr>
     
            <td valign="top" width="100%" runat="server" id="tdContent">
                <table class="content" width="98%">
                    <tr>
                        <td style="padding: 5px;">
                            <table width="100%" class="title">
                                <tr>
                                    <td>
                                        <h2><img src="/_layouts/JM.JCY.Resource/images/新闻大.png" width="32" />
                                            <asp:Label ID="lblDisplay" runat="server"></asp:Label>
                                        </h2>
                                    </td>
                                    <td align="right" width="40%">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <hr />
                            <table width="100%" class="form">
                                <tr>
                                    <td>
                                        <b>主题</b> <span class="mandatory">*</span>
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSubject" runat="server" Width="480" MaxLength="100"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>照片</b>
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:Image ID="imgPic" runat="server" Style="padding-bottom: 5px;" Width="144" Height="90" />
                                        <br />
                                        <asp:FileUpload ID="filePicture" runat="server" Width="480" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>内容</b> <span class="mandatory">*</span>
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSummary" runat="server" TextMode="MultiLine" Rows="10" Columns="70"
                                            MaxLength="200"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3" class="button" align="right">
                                        <asp:ImageButton ID="imgPreview" runat="server" ImageUrl="~/_layouts/JM.JCY.Resource/images/preview.png"
                                            ValidationGroup="SaveInfo" OnClick="imgPreview_Click" />
                                        <asp:ImageButton ID="imgSaveDraft" runat="server" ImageUrl="~/_layouts/JM.JCY.Resource/images/saveasdraft.png"
                                            ValidationGroup="SaveInfo" OnClick="imgSaveDraft_Click" />
                                        <asp:ImageButton ID="imgSavePublish" runat="server" ImageUrl="~/_layouts/JM.JCY.Resource/images/saveandpublish.png"
                                            ValidationGroup="SaveInfo" OnClick="imgSavePublish_Click" />
                                        <asp:ImageButton ID="imgCancel" runat="server" ImageUrl="~/_layouts/JM.JCY.Resource/images/cancel.png"
                                            OnClick="imgCancel_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>
<asp:HiddenField ID="hfCategory" runat="server" />
<asp:HiddenField ID="hfPicPath" runat="server" />
